function image_contrast() {
	create_overlay(null, function(sId, oImg, oParams) {
		$.post('/admin/media_ajax/get_image_contrast', {}, function(data) {
			$('#edit_media_tool_cont').html(data.sContent);
			
			$('#image_contrast_slider').slider({
				value: 50,
				orientation: 'horizontal', 
				slide: function(e, ui) {
					var iAdjust = ((ui.value - 50) * 2);
					
					$('#image_contrast_val').html(iAdjust);
				},
				change: function(e, ui) {
					var iAdjust = ((ui.value - 50) * 2);
					
					if (iAdjust !== 0) {
					
						create_overlay(null, function(sId, oImg, oPassThru) {
							var oParams = {
									sSrcImage : strip_domain($('#edit_media_image').attr('src')),
									iMediaId : oMedia.iMediaId,
									iAdjust : iAdjust
							};
					
							$.post('/admin/media_ajax/apply_image_contrast', oParams, function(data) {
								if (data.sError) {
									$.prompt(data.sError);
									$(oImg).remove();
									$('#' + sId).remove();
									return;
								}
								
								append_history({ 
									sAction : data.sHistory,
									sImgSrc : data.sContent,
									iImgWidth : oParams.iWidth,
									iImgHeight : oParams.iHeight
								});
								
								$('#edit_media_image').attr('src', data.sContent).css({
									width : oParams.iWidth + 'px',
									height : oParams.iHeight + 'px'
								});
								
								
								set_zoom_level();
								publish_history('N');
								
								$('#image_contrast_slider').slider('value', 50);
								
								$(oImg).remove();
								$('#' + sId).remove();
														
							}, 'json');
							
							
						}, {});
					}
				}
			});

			
			$(oImg).remove();
			$('#' + sId).remove();
		}, 'json');
	});
}